/*
 * InternalFrameWidget.cpp  0.4.0 / Nov 30, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#include "InternalFrameWidget.h"

// InternalFrameWidget :: Public Constructor. ----------------------------------

/*!
 * \brief Constructs new InternalFrameWidget object.
 *
 * \param delegate the delegate
 */
InternalFrameWidget::InternalFrameWidget(InternalFrameDelegate *delegate)
  : QWidget(0), m_delegate(delegate)
{
  Q_ASSERT(m_delegate);
}

// InternalFrameWidget :: Overridden Member Function. --------------------------

/*!
 * \inheritDoc
 */
QSize InternalFrameWidget::sizeHint() const
{
  return m_delegate->getLayoutPreferredSize();
}
